﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Arc.DairyMan.DairyMan.DataAccess;
using Arc.DairyMan.DairyMan.Model;

namespace Arc.DairyMan.DairyMan.BusinessLogic
{
    public abstract class AbsBl
    {
        public AbsModel ModelObj { get; protected set; }
        public AbsDal Dal { get; set; }
        public AbsBl ParentBl { get; private set; }

        public AbsBl(AbsModel Model)
        {
            this.ModelObj = Model;
        }
        public AbsBl() { }

        public AbsBl(AbsBl ParentBl)
        {
            this.ParentBl = ParentBl;
        }

        public abstract void Validation();
        public abstract int Transaction(bool TransactionStarter);
        public abstract void Select(string Critiera);
        public abstract void Search(string Critiera);

        DataSet _DS;
        public DataSet DS
        {
            get { return _DS; }
            set { _DS = value; }
        }

        int _Result;
        public int Result
        {
            get { return _Result; }
            set { _Result = value; }
        }

        //ArrayList _ClassList;
        //public ArrayList ClassList { get; set; }

    }
}
